/* ====================================
   策略管理样式模块 (strategy.css)
   包含：V3策略配置、策略列表、地区管理、计费规则等
   ==================================== */

/* V3策略配置页面样式 - 两栏布局 */
.v3-config-layout {
    display: flex;
    gap: 16px;
    min-height: 650px; /* 保持最小高度 */
    background: var(--color-background-light);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--box-shadow-md);
    transition: all 0.3s ease;
    overflow: hidden; /* 修改：使用hidden而不是visible */
}

/* 左侧策略列表面板 */
.v3-left-panel {
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--box-shadow-lg);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border-extra-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 右侧内容容器 - 包含地区配置和计费规则的上下布局 */
.v3-right-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 650px;
    transition: all 0.3s ease;
}

/* 中间地区显示面板 - 移到右侧上方 */
.v3-center-panel {
    background: white;
    border-radius: 12px;
    box-shadow: var(--box-shadow-lg);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border-extra-light);
    overflow: hidden; /* 修改：使用hidden确保内容不溢出 */
    flex: 0 0 60%; /* 增加到60%高度给地区配置更多空间 */
    min-height: 350px; /* 增加最小高度 */
    transition: all 0.3s ease;
}

/* 右侧计费规则面板 - 移到右侧下方 */
.v3-right-panel {
    background: white;
    border-radius: 12px;
    box-shadow: var(--box-shadow-lg);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border-extra-light);
    overflow: hidden;
    flex: 1; /* 占用剩余空间 */
    min-height: 200px;
    transition: all 0.3s ease;
}

/* 面板头部样式 */
.v3-config-layout .panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-extra-light);
    background: linear-gradient(180deg, var(--color-background-lighter) 0%, var(--color-background-light) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
}

.v3-config-layout .panel-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.v3-config-layout .panel-header h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, var(--color-primary), #66b1ff);
    border-radius: 2px;
}

/* 查看模式标识 */
.view-mode-label {
    font-size: 12px;
    color: var(--color-text-secondary);
    padding: 4px 8px;
    background: var(--color-background-lighter);
    border: 1px solid var(--color-border-lighter);
    border-radius: 12px;
    font-weight: 500;
}

.v3-config-layout .panel-subtitle {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-left: 12px;
    padding: 2px 8px;
    background: var(--color-background-lighter);
    border-radius: 8px;
}

/* 面板内容样式 - 修复主要问题 */
.v3-config-layout .panel-content {
    flex: 1;
    overflow-y: auto; /* 修改：使用auto而不是visible，确保可以滚动 */
    background: var(--color-background);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

/* 地区配置管理面板特定样式 */
.v3-center-panel .panel-content {
    overflow-y: auto; /* 修改：使用auto确保可以滚动 */
    padding: 0; /* 去除内边距，让表格占满空间 */
    height: auto; /* 自动高度，确保内容完整显示 */
    flex: 1; /* 占用所有可用空间 */
    display: flex;
    flex-direction: column;
}

/* 优化表格样式 */
.area-pricing-table {
    flex: 1;
    overflow: auto; /* 修改：使用auto确保可以滚动 */
    width: 100%;
    display: flex;
    flex-direction: column;
}

.area-pricing-table .config-table {
    width: 100%;
    height: auto; /* 自动高度 */
    table-layout: fixed; /* 固定表格布局 */
    flex: 1;
}

/* 优化表格单元格样式，确保内容完整显示 */
.config-table td {
    word-wrap: break-word;
    white-space: normal; /* 允许换行 */
    vertical-align: top;
    padding: 8px 4px;
}

/* 地区标签容器优化 */
.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
}

.area-tag {
    display: inline-block;
    padding: 2px 6px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border: 1px solid #90caf9;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    margin: 1px;
}

/* 空状态样式优化 */
.v3-config-layout .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: var(--color-text-secondary);
    font-size: 14px;
    background: var(--color-background-lighter);
    border: 2px dashed var(--color-border-lighter);
    border-radius: 8px;
    text-align: center;
    margin: 16px;
}

.v3-config-layout .empty-state::before {
    content: '📋';
    font-size: 28px;
    margin-bottom: 8px;
    opacity: 0.6;
}

/* 策略列表项样式 */
.strategy-item {
    margin: 12px 16px;
    padding: 16px;
    border: 1px solid var(--color-border-extra-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--color-background);
    box-shadow: var(--box-shadow-sm);
}

.strategy-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(64, 158, 255, 0.15);
    border-color: var(--color-primary);
}

.strategy-item.selected {
    background: linear-gradient(135deg, #ecf5ff 0%, #e1f3ff 100%);
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(64, 158, 255, 0.2);
    transform: translateY(-1px);
}

.strategy-item.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary), #66b1ff);
    border-radius: 0 4px 4px 0;
}

.strategy-item .strategy-info {
    margin-bottom: 12px;
}

.strategy-item .strategy-name {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.strategy-item.selected .strategy-name {
    color: var(--color-primary);
}

.strategy-item .strategy-name::before {
    content: '📄';
    font-size: 14px;
    opacity: 0.7;
}

.strategy-item .strategy-time {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.strategy-item .strategy-time::before {
    content: '🕒';
    font-size: 11px;
}

.strategy-item .strategy-note {
    font-size: 12px;
    color: var(--color-text-regular);
    line-height: 1.4;
    max-height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.strategy-item .strategy-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.strategy-item .strategy-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.strategy-item .strategy-actions .btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #66b1ff);
    border: none;
    color: white;
    font-weight: 500;
}

.strategy-item .strategy-actions .btn-primary:hover {
    background: linear-gradient(135deg, #337ecc, #5dade2);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(64, 158, 255, 0.3);
}

/* 地区显示样式 */
.area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--color-background-lighter);
    border-bottom: 1px solid var(--color-border-extra-light);
}

.area-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.area-header .btn {
    padding: 6px 16px;
    font-size: 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--color-success), #85ce61);
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.area-header .btn:hover {
    background: linear-gradient(135deg, #5daf34, #7cc142);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(103, 194, 58, 0.3);
}

.area-content {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100% - 120px);
    overflow-y: auto;
}

/* 地区分组样式 */
.area-group {
    border: 1px solid var(--color-border-extra-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: white;
}

.area-group:hover {
    box-shadow: var(--box-shadow-md);
    border-color: var(--color-border-light);
}

.area-group-header {
    background: linear-gradient(135deg, var(--color-background-light) 0%, var(--color-background-lighter) 100%);
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-extra-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.area-group-header .province-name {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.area-group-header .province-name::before {
    content: '🏢';
    font-size: 12px;
}

.area-group-header .area-count {
    font-size: 11px;
    color: var(--color-success);
    background: linear-gradient(135deg, #f0f9ff, #e1f3ff);
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid #b3d8ff;
    font-weight: 500;
}

.area-group-content {
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--color-background-lighter);
}

.area-tag {
    background: linear-gradient(135deg, #e7f3ff, #d9ecff);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid #b3d8ff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.area-tag:hover {
    background: linear-gradient(135deg, #d9ecff, #cce7ff);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(64, 158, 255, 0.2);
}

.area-tag::before {
    content: '';
    font-size: 10px;
}

.area-tag .area-name {
    font-weight: 500;
}

/* 空地区样式 */
.empty-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    color: var(--color-text-secondary);
    font-size: 14px;
    background: var(--color-background-lighter);
    border: 2px dashed var(--color-border-light);
    border-radius: 8px;
    text-align: center;
    line-height: 1.6;
}

.empty-area::before {
    content: '🗺️';
    font-size: 28px;
    margin-bottom: 8px;
    opacity: 0.6;
}

/* 计费规则表格样式 */
.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--color-background-lighter);
    border-bottom: 1px solid var(--color-border-extra-light);
}

.pricing-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.pricing-header .btn {
    padding: 6px 16px;
    font-size: 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--color-primary), #66b1ff);
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pricing-header .btn:hover {
    background: linear-gradient(135deg, #337ecc, #5dade2);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(64, 158, 255, 0.3);
}

.pricing-content {
    padding: 16px 20px;
    overflow-x: auto;
}

/* 地区信息可点击样式 */
.clickable-area {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.clickable-area:hover {
    background-color: var(--color-background-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 蓝色文本样式 */
.blue-text {
    color: var(--color-primary);
    font-weight: 500;
}

.blue-text:hover {
    color: #337ecc;
    text-decoration: underline;
}

.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    background: white;
    border: 1px solid var(--color-border-extra-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
}

.pricing-table th {
    background: linear-gradient(135deg, var(--color-background-light) 0%, var(--color-background-lighter) 100%);
    color: var(--color-text-regular);
    font-weight: 600;
    font-size: 11px;
    text-align: center;
    padding: 12px 8px;
    border-bottom: 2px solid var(--color-border-extra-light);
    border-right: 1px solid var(--color-border-extra-light);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-table th:last-child {
    border-right: none;
}

.pricing-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), #66b1ff);
}

.pricing-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--color-background-light);
    border-right: 1px solid var(--color-background-light);
    vertical-align: middle;
    font-size: 12px;
    color: var(--color-text-regular);
    transition: all 0.2s ease;
}

.pricing-table td:last-child {
    border-right: none;
}

.pricing-table tbody tr {
    transition: all 0.2s ease;
}

.pricing-table tbody tr:hover {
    background: linear-gradient(135deg, var(--color-background-light) 0%, var(--color-background-lighter) 100%);
    transform: scale(1.005);
    box-shadow: var(--box-shadow-md);
}

.pricing-table tbody tr:hover td {
    color: var(--color-text-primary);
    font-weight: 500;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

/* 重量范围单元格 */
.pricing-table .weight-range-cell {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f9ff 100%);
    color: var(--color-primary);
    font-weight: 600;
    border-left: 3px solid var(--color-primary);
}

/* 金额单元格 */
.pricing-table .price-cell {
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 600;
    color: var(--color-danger);
}

.pricing-table .price-cell::before {
    content: '¥';
    color: var(--color-text-secondary);
    margin-right: 2px;
}

/* 空规则样式 */
.empty-rules {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-secondary);
    font-size: 14px;
    background: linear-gradient(135deg, var(--color-background-lighter) 0%, var(--color-background-light) 100%);
    border: 2px dashed var(--color-border-light);
    border-radius: 8px;
    margin: 16px;
    position: relative;
}

.empty-rules::before {
    content: '📊';
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* V3策略编辑模态框样式 - 已移至modal.css统一管理 */

.v3-strategy-edit-layout {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.v3-shipping-areas-section {
    flex: 1;
    min-width: 400px;
}

.v3-pricing-rules-section {
    flex: 2;
    min-width: 600px;
}

.v3-shipping-areas-section h4,
.v3-pricing-rules-section h4 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border-light);
    color: var(--color-text-primary);
    font-weight: 600;
}

/* V3区域选择器样式 */
.v3-areas-selector {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem;
}

.areas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.selected-count {
    font-size: 14px;
    color: var(--color-text-regular);
    background: #f0f9ff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid #b3d8ff;
}

.selected-areas-display {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    padding: 0.5rem;
}

.selected-areas-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selected-areas-tags .area-tag {
    background: #e1f3d8;
    color: var(--color-success);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #b3d8a0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-remove-btn {
    background: none;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    margin-left: 0.3rem;
}

.tag-remove-btn:hover {
    color: var(--color-warning);
}

/* V3计费规则编辑器样式 */
.v3-pricing-rules-editor {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.v3-pricing-edit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.v3-pricing-edit-table th,
.v3-pricing-edit-table td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--color-border-lighter);
    vertical-align: middle;
}

.v3-pricing-edit-table th {
    background: var(--color-background-light);
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 12px;
}

.table-input {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 12px;
    text-align: center;
}

.table-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.rule-actions {
    padding: 1rem;
    background: var(--color-background-lighter);
    border-top: 1px solid var(--color-border-lighter);
    text-align: center;
}

.rule-actions .form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .v3-config-layout {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .v3-left-panel {
        width: 100%;
        min-width: auto;
    }

    .v3-right-container {
        width: 100%;
    }

    .v3-center-panel,
    .v3-right-panel {
        width: 100%;
        min-width: auto;
    }

    .pricing-table {
        font-size: 11px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 768px) {
    .v3-config-layout {
        padding: 12px;
        gap: 8px;
    }

    .strategy-item {
        margin: 8px 12px;
        padding: 12px;
    }

    .area-content,
    .pricing-content {
        padding: 12px 16px;
    }

    .pricing-table {
        font-size: 10px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 6px 4px;
    }

    .v3-strategy-edit-layout {
        flex-direction: column;
        gap: 1rem;
    }

    .v3-shipping-areas-section,
    .v3-pricing-rules-section {
        min-width: auto;
    }

    /* 小屏幕下右侧容器保持垂直布局 */
    .v3-right-container {
        flex-direction: column;
    }

    .v3-center-panel {
        min-height: 200px;
    }
}

/* ====================================
   V3策略编辑模态框表格样式
   ==================================== */

/* 配置表格样式 */
.config-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.config-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--color-text-secondary);
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid var(--color-border-light);
    font-size: 12px;
    white-space: nowrap;
}

.config-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--color-border-extra-light);
    vertical-align: middle;
    background: white;
}

.config-table tr:hover td {
    background: #f8f9fa;
}

/* 表格输入框样式 */
.table-input {
    width: 100%;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 12px;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
}

.table-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

.table-input.modified {
    border-color: var(--color-warning);
    background: #fff7e6;
}

.table-input.error {
    border-color: var(--color-danger);
    background: #fff2f0;
}

/* 选择框样式 */
.table-select {
    width: 100%;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.table-select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

/* 状态徽章样式 */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    min-width: 50px;
    display: inline-block;
}

.status-badge.status-active {
    background: linear-gradient(135deg, #f0f9ff, #e1f3ff);
    color: var(--color-success);
    border: 1px solid #b3e5fc;
}

.status-badge.status-inactive {
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    color: var(--color-text-secondary);
    border: 1px solid #d9d9d9;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.btn-small {
    padding: 4px 8px;
    font-size: 11px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-small.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #66b1ff);
    color: white;
}

.btn-small.btn-primary:hover {
    background: linear-gradient(135deg, #337ecc, #5dade2);
}

.btn-small.btn-success {
    background: linear-gradient(135deg, var(--color-success), #85ce61);
    color: white;
}

.btn-small.btn-success:hover {
    background: linear-gradient(135deg, #5daf34, #7cc142);
}

.btn-small.btn-danger {
    background: linear-gradient(135deg, var(--color-danger), #ff8a80);
    color: white;
}

.btn-small.btn-danger:hover {
    background: linear-gradient(135deg, #e53e3e, #ff6b6b);
}

/* 地区信息样式 */
.area-info {
    text-align: left;
    padding: 4px;
}

.area-info .area-name {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
}

.area-info .area-list {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
    /* 移除高度和溢出限制，允许完整显示 */
}


/* 空状态样式 */
.empty-cell {
    text-align: center;
    padding: 40px 20px;
}

.empty-state {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.empty-state i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.6;
    display: block;
}

.empty-state p {
    margin: 8px 0;
}

.empty-state .empty-hint {
    font-size: 12px;
    color: var(--color-text-placeholder);
    margin-bottom: 16px;
}

.empty-state .btn {
    margin-top: 8px;
}

/* 新添加行样式 */
.new-weight-rule {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border: 2px solid var(--color-success);
    animation: newRowFadeIn 0.3s ease-out;
}

.new-weight-rule td {
    background: transparent;
}

/* 地区配置管理的新增配置样式 */
.new-area-config {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%) !important;
    border: 2px solid var(--color-success) !important;
    animation: newRowFadeIn 0.3s ease-out;
    position: relative;
}

.new-area-config td {
    background: transparent !important;
}

/* 已确认的新地区配置样式 */
.confirmed-new-area-config {
    background: linear-gradient(135deg, #f0f9ff 0%, #e1f3ff 100%) !important;
    border: 2px solid #409eff !important;
    position: relative;
}

.confirmed-new-area-config td {
    background: transparent !important;
    border-color: #409eff !important;
}

.confirmed-new-area-config input {
    background-color: #f8f9fa !important;
    border-color: #409eff !important;
}

/* 状态徽章样式 */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
}

.status-pending {
    background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
    color: white;
    border: 1px solid #d48806;
}

/* 状态文本样式 */
.status-text {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.text-success {
    color: #67c23a;
    background-color: #f0f9ff;
}

@keyframes newRowFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计优化 */
@media (max-width: 1200px) {
    .config-table {
        font-size: 11px;
    }

    .config-table th,
    .config-table td {
        padding: 8px 4px;
    }

    .table-input,
    .table-select {
        font-size: 11px;
        padding: 4px 6px;
    }

    .btn-small {
        font-size: 10px;
        padding: 3px 6px;
    }

    .area-info .area-name {
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .config-table {
        font-size: 10px;
    }

    .config-table th,
    .config-table td {
        padding: 6px 2px;
    }

    .table-input,
    .table-select {
        font-size: 10px;
        padding: 3px 4px;
    }

    .btn-small {
        font-size: 9px;
        padding: 2px 4px;
        gap: 2px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }

    .area-info .area-name {
        max-width: 80px;
    }
}

/* ========================================= */
/* 重量区间规则表格优化 - 确保数据完整显示 */
/* ========================================= */

/* 重量区间配置表格容器 */
.weight-rules-table {
    background: white;
    border-radius: 6px;
    border: 1px solid var(--color-border-light);
    /* 修复：确保重量区间规则表格能完整显示所有数据 */
    overflow: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

/* 重量区间配置部分 */
.weight-rules-section {
    /* 确保重量区间配置部分可以完整显示 */
    overflow: auto !important;
    max-height: none !important;
    height: auto !important;
}

/* 重量区间配置表格内容 */
.weight-rules-section .config-table {
    /* 确保表格数据不被隐藏 */
    overflow: auto !important;
    max-height: none !important;
    height: auto !important;
}

.weight-rules-section .config-table tbody {
    /* 确保表格体内容完整显示 */
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

/* 重量区间配置表格行 */
.weight-rules-section .config-table tr {
    /* 确保每一行都能正常显示 */
    display: table-row !important;
    visibility: visible !important;
    height: auto !important;
}

/* 重量区间配置表格单元格 */
.weight-rules-section .config-table td {
    /* 确保单元格内容完整显示 */
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    height: auto !important;
    min-height: 40px !important;
    padding: 8px 4px !important;
}

/* 重量区间配置表格头部 */
.weight-rules-section .config-table th {
    /* 确保表头正常显示 */
    height: auto !important;
    min-height: 40px !important;
    padding: 8px 4px !important;
}

/* 防止在小屏幕下被隐藏 */
@media (max-width: 768px) {
    .weight-rules-section {
        overflow: auto !important;
        height: auto !important;
    }
    
    .weight-rules-section .config-table {
        font-size: 10px !important;
        overflow: auto !important;
    }
    
    .weight-rules-section .config-table td {
        min-height: 35px !important;
        padding: 6px 2px !important;
    }
}